-- for luau

local lib = {}
local env

function lib.getRandomPlayer()
return game.Players:GetPlayers()[math.random(#game.Players:GetPlayers)]
end

function lib.getFPS()
local dt = game:GetService('RunService').RenderStepped:Wait()
return 1 / dt
end

function lib.setenv(newenv)
env = newenv
end

function lib.getenv()
return env
end

return lib